//获取用户名
function initUserInfo() {
    $.ajax({
        url:'queryLoginUserName',
        type:'get',
        async: true,
        data: {},
        dataType: 'JSON',
        success: function(resp) {
            console.log(resp);
            var welcome = document.getElementById('welcome');
            welcome.innerHTML = resp.message;
        },
        error: function(err) {
            alert('请联系管理员...');
        }
    })
}
initUserInfo();

//注销
function userExit() {
    var dt = confirm("确定退出?");
    if(dt==true){
        window.location.href = "userExit";
    }

}